import { IFeidaoAiBrowserComponent } from '@dfeidao/atom-web/interfaces';
import fire from '@dfeidao/atom-web/msg/fire';
import set_node_cls from '@dfeidao/atom-web/ui/set-node-cls';

export default async function a002(fd: IFeidaoAiBrowserComponent) {
	// todo
	const project_name1 = fd.data.node.querySelector<HTMLInputElement>('[data-id="project_name"]');
	project_name1.value = "";
	const project_manager1 = fd.data.node.querySelector<HTMLSpanElement>('[data-id="project_manager"]');
	project_manager1.textContent = "";
	const equip_depart_name1 = fd.data.node.querySelector<HTMLInputElement>('[data-id="equip_depart_name"]');
	equip_depart_name1.textContent = "";
	const risk_type1 = fd.data.node.querySelector<HTMLSelectElement>('[data-id="risk_type"]');
	risk_type1.value = "0";
	const involved_amount1 = fd.data.node.querySelector<HTMLInputElement>('[data-id="involved_amount"]');
	involved_amount1.value = "";
	const risk_status1 = fd.data.node.querySelector<HTMLSelectElement>('[data-id="risk_status"]');
	risk_status1.value = "0";
	const risk_content1 = fd.data.node.querySelector<HTMLTextAreaElement>('[data-id="risk_content"]');
	risk_content1.value = "";
	const memo1 = fd.data.node.querySelector<HTMLTextAreaElement>('[data-id="memo"]');
	memo1.value = "";
	const ad = fd.data.node.querySelector<HTMLDivElement>('[data-id="add"]');
	set_node_cls(ad,'display-n',true);
	fire('zj-000001','a004');
}
